/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
//import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class OptionsEntity {
    @NotNull
    private final List<Option> answer;
    private final boolean checked;
    @NotNull
    private final List<Option> options;
    @NotNull
    private final String problemType;

    public OptionsEntity(@NotNull String problemType, boolean z, @NotNull List<Option> options, @NotNull List<Option> answer) {
//        Intrinsics.checkNotNullParameter(problemType, "problemType");
//        Intrinsics.checkNotNullParameter(options, "options");
//        Intrinsics.checkNotNullParameter(answer, "answer");
        this.problemType = problemType;
        this.checked = z;
        this.options = options;
        this.answer = answer;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ OptionsEntity copy$default(OptionsEntity optionsEntity, String str, boolean z, List list, List list2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = optionsEntity.problemType;
        }
        if ((i2 & 2) != 0) {
            z = optionsEntity.checked;
        }
        if ((i2 & 4) != 0) {
            list = optionsEntity.options;
        }
        if ((i2 & 8) != 0) {
            list2 = optionsEntity.answer;
        }
        return optionsEntity.copy(str, z, list, list2);
    }

    @NotNull
    public final String component1() {
        return this.problemType;
    }

    public final boolean component2() {
        return this.checked;
    }

    @NotNull
    public final List<Option> component3() {
        return this.options;
    }

    @NotNull
    public final List<Option> component4() {
        return this.answer;
    }

    @NotNull
    public final OptionsEntity copy(@NotNull String problemType, boolean z, @NotNull List<Option> options, @NotNull List<Option> answer) {
//        Intrinsics.checkNotNullParameter(problemType, "problemType");
//        Intrinsics.checkNotNullParameter(options, "options");
//        Intrinsics.checkNotNullParameter(answer, "answer");
        return new OptionsEntity(problemType, z, options, answer);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof OptionsEntity)) {
            return false;
        }
        OptionsEntity optionsEntity = (OptionsEntity) obj;
        return Intrinsics.areEqual(this.problemType, optionsEntity.problemType) && this.checked == optionsEntity.checked && Intrinsics.areEqual(this.options, optionsEntity.options) && Intrinsics.areEqual(this.answer, optionsEntity.answer);
    }

    @NotNull
    public final List<Option> getAnswer() {
        return this.answer;
    }

    public final boolean getChecked() {
        return this.checked;
    }

    @NotNull
    public final List<Option> getOptions() {
        return this.options;
    }

    @NotNull
    public final String getProblemType() {
        return this.problemType;
    }

    public int hashCode() {
        int hashCode = this.problemType.hashCode() * 31;
        boolean z = this.checked;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return ((((hashCode + i2) * 31) + this.options.hashCode()) * 31) + this.answer.hashCode();
    }

    @NotNull
    public String toString() {
        return "OptionsEntity(problemType=" + this.problemType + ", checked=" + this.checked + ", options=" + this.options + ", answer=" + this.answer + ')';
    }
}